package com.xiaoyao.myframeapp.JavaCode.welcome;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.xiaoyao.myframeapp.MvpTest.activity.TestActivity;
import com.xiaoyao.myframeapp.R;
import com.xiaoyao.myframeapp.mvp.base.BaseActivityNo;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 引导+广告+欢迎 页面
 */
public class WelcomeAdActivity extends BaseActivityNo {


    @BindView(R.id.btoon)
    ImageView btoon;
    @BindView(R.id.activity_welcome_ad)
    RelativeLayout activityWelcomeAd;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_welcome_ad;
    }

    @Override
    protected void initView() {

//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//                try {
//                    Thread.sleep(1000);
////                    startActivity(new Intent(WelcomeAdActivity.this.getBaseContext(), AppIntroActivity.class));
//                    startActivity(new Intent(WelcomeAdActivity.this.getBaseContext(), TestActivity.class));
////                    WelcomeAdActivity.this.finish();
//                } catch (InterruptedException e) {
//                    e.printStackTrace();
//                }
//            }
//        }).start();
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void showLoading() {

    }

    @Override
    protected void hideLoading() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.btoon, R.id.activity_welcome_ad})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btoon:
                startActivity(new Intent(WelcomeAdActivity.this.getBaseContext(), TestActivity.class));
                break;
            case R.id.activity_welcome_ad:
                break;
        }
    }
}
